unit Unit_PassSet;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls;

type
  Tfrm_PasSet = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Image1: TImage;
    btnApply: TBitBtn;
    btnClose: TBitBtn;
    edtOldPwd: TEdit;
    edtNewPwd: TEdit;
    edtNewPwd2: TEdit;
    procedure btnApplyClick(Sender: TObject);
    procedure btnCloseClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frm_PasSet: Tfrm_PasSet;

implementation

uses Unit_DM, Unit_Main;

{$R *.dfm}

procedure Tfrm_PasSet.btnApplyClick(Sender: TObject);
begin
  if DM.ModifySecret(frm_Main.StatusBar1.Panels[1].Text,edtOldPwd.Text,edtNewPwd.Text,edtNewPwd2.Text)= true then
    Close;
end;

procedure Tfrm_PasSet.btnCloseClick(Sender: TObject);
begin
  Close;
end;

end.
